﻿/*----------------------------------------------------------------------------------------
*
*  Copyright 2019, Gao Hai Hui, <fromzeropoint@126.com>.  All rights reserved.
*  https://gitee.com/helloworldghh/xoskit.git
*  Use of this source code is governed by a MIT license
*  that can be found in the License file.
*
----------------------------------------------------------------------------------------*/
#ifndef __2F23D84F_42D0_440d_8C13_C385866812C5__
#define __2F23D84F_42D0_440d_8C13_C385866812C5__

#include "../import/head.h"

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

namespace xos
{
    namespace misc_tool
    {
        // 
        // utf8 to wchar
        // 
        int utf8_to_wchar( const char * lpszSrc, int nSrcByteSize, wchar_t * lpszDest, int nDestByteSize, int * lpnDestNeedSize );

        // 
        // wchar to utf8
        // 
        int wchar_to_utf8( const wchar_t * lpszSrc, int nSrcByteSize, char * lpszDest, int nDestByteSize, int * lpnDestNeedSize );
    } // misc_tool
} // xos

#endif // __2F23D84F_42D0_440d_8C13_C385866812C5__
